Optimal. Leaf size=231 \[ -\frac {\sqrt {b} \left (15 a^2-70 a b+63 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a}}\right )}{8 a^{11/2} f}-\frac {\left (5 a^2-30 a b+27 b^2\right ) \cot (e+f x)}{5 a^5 f}-\frac {(10 a-9 b) \cot ^3(e+f x)}{15 a^4 f}-\frac {\cot ^5(e+f x)}{5 a f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (5 a^2-10 a b+9 b^2\right ) \tan (e+f x)}{20 a^4 f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (35 a^2-110 a b+99 b^2\right ) \tan (e+f x)}{40 a^5 f \left (a+b \tan ^2(e+f x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.21, antiderivative size = 231, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3744, 473, 467,
1273, 1275, 211} \begin {gather*} -\frac {(10 a-9 b) \cot ^3(e+f x)}{15 a^4 f}-\frac {\sqrt {b} \left (15 a^2-70 a b+63 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a}}\right )}{8 a^{11/2} f}-\frac {b \left (35 a^2-110 a b+99 b^2\right ) \tan (e+f x)}{40 a^5 f \left (a+b \tan ^2(e+f x)\right )}-\frac {\left (5 a^2-30 a b+27 b^2\right ) \cot (e+f x)}{5 a^5 f}-\frac {b \left (5 a^2-10 a b+9 b^2\right ) \tan (e+f x)}{20 a^4 f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {\cot ^5(e+f x)}{5 a f \left (a+b \tan ^2(e+f x)\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 467
Rule 473
Rule 1273
Rule 1275
Rule 3744
Rubi steps
\begin {align*} \int \frac {\csc ^6(e+f x)}{\left (a+b \tan ^2(e+f x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (1+x^2\right )^2}{x^6 \left (a+b x^2\right )^3} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {\cot ^5(e+f x)}{5 a f \left (a+b \tan ^2(e+f x)\right )^2}+\frac {\text {Subst}\left (\int \frac {10 a-9 b+5 a x^2}{x^4 \left (a+b x^2\right )^3} \, dx,x,\tan (e+f x)\right )}{5 a f}\\ &=-\frac {\cot ^5(e+f x)}{5 a f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (5 a^2-10 a b+9 b^2\right ) \tan (e+f x)}{20 a^4 f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \text {Subst}\left (\int \frac {4 \left (\frac {9}{a}-\frac {10}{b}\right )+4 \left (\frac {10}{a}-\frac {5}{b}-\frac {9 b}{a^2}\right ) x^2+\frac {3 \left (5 a^2-10 a b+9 b^2\right ) x^4}{a^3}}{x^4 \left (a+b x^2\right )^2} \, dx,x,\tan (e+f x)\right )}{20 a f}\\ &=-\frac {\cot ^5(e+f x)}{5 a f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (5 a^2-10 a b+9 b^2\right ) \tan (e+f x)}{20 a^4 f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (35 a^2-110 a b+99 b^2\right ) \tan (e+f x)}{40 a^5 f \left (a+b \tan ^2(e+f x)\right )}-\frac {\text {Subst}\left (\int \frac {-8 a (10 a-9 b) b-8 b \left (5 a^2-20 a b+18 b^2\right ) x^2+\frac {b^2 \left (35 a^2-110 a b+99 b^2\right ) x^4}{a}}{x^4 \left (a+b x^2\right )} \, dx,x,\tan (e+f x)\right )}{40 a^4 b f}\\ &=-\frac {\cot ^5(e+f x)}{5 a f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (5 a^2-10 a b+9 b^2\right ) \tan (e+f x)}{20 a^4 f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (35 a^2-110 a b+99 b^2\right ) \tan (e+f x)}{40 a^5 f \left (a+b \tan ^2(e+f x)\right )}-\frac {\text {Subst}\left (\int \left (-\frac {8 (10 a-9 b) b}{x^4}-\frac {8 b \left (5 a^2-30 a b+27 b^2\right )}{a x^2}+\frac {5 b^2 \left (15 a^2-70 a b+63 b^2\right )}{a \left (a+b x^2\right )}\right ) \, dx,x,\tan (e+f x)\right )}{40 a^4 b f}\\ &=-\frac {\left (5 a^2-30 a b+27 b^2\right ) \cot (e+f x)}{5 a^5 f}-\frac {(10 a-9 b) \cot ^3(e+f x)}{15 a^4 f}-\frac {\cot ^5(e+f x)}{5 a f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (5 a^2-10 a b+9 b^2\right ) \tan (e+f x)}{20 a^4 f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (35 a^2-110 a b+99 b^2\right ) \tan (e+f x)}{40 a^5 f \left (a+b \tan ^2(e+f x)\right )}-\frac {\left (b \left (15 a^2-70 a b+63 b^2\right )\right ) \text {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\tan (e+f x)\right )}{8 a^5 f}\\ &=-\frac {\sqrt {b} \left (15 a^2-70 a b+63 b^2\right ) \tan ^{-1}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a}}\right )}{8 a^{11/2} f}-\frac {\left (5 a^2-30 a b+27 b^2\right ) \cot (e+f x)}{5 a^5 f}-\frac {(10 a-9 b) \cot ^3(e+f x)}{15 a^4 f}-\frac {\cot ^5(e+f x)}{5 a f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (5 a^2-10 a b+9 b^2\right ) \tan (e+f x)}{20 a^4 f \left (a+b \tan ^2(e+f x)\right )^2}-\frac {b \left (35 a^2-110 a b+99 b^2\right ) \tan (e+f x)}{40 a^5 f \left (a+b \tan ^2(e+f x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.12, size = 346, normalized size = 1.50 \begin {gather*} \frac {-960 \sqrt {b} \left (15 a^2-70 a b+63 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a}}\right )-\frac {2 \sqrt {a} \left (1600 a^4-165 a^3 b+637 a^2 b^2-28875 a b^3+33075 b^4+4 \left (416 a^4-447 a^3 b-1400 a^2 b^2+13125 a b^3-13230 b^4\right ) \cos (2 (e+f x))-4 \left (32 a^4-257 a^3 b-2821 a^2 b^2+8925 a b^3-6615 b^4\right ) \cos (4 (e+f x))-128 a^4 \cos (6 (e+f x))+1788 a^3 b \cos (6 (e+f x))-8800 a^2 b^2 \cos (6 (e+f x))+14700 a b^3 \cos (6 (e+f x))-7560 b^4 \cos (6 (e+f x))+64 a^4 \cos (8 (e+f x))-863 a^3 b \cos (8 (e+f x))+2479 a^2 b^2 \cos (8 (e+f x))-2625 a b^3 \cos (8 (e+f x))+945 b^4 \cos (8 (e+f x))\right ) \cot (e+f x) \csc ^4(e+f x)}{(a+b+(a-b) \cos (2 (e+f x)))^2}}{7680 a^{11/2} f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.40, size = 175, normalized size = 0.76
method | result | size |
derivativedivides | \(\frac {-\frac {1}{5 a^{3} \tan \left (f x +e \right )^{5}}-\frac {2 a -3 b}{3 a^{4} \tan \left (f x +e \right )^{3}}-\frac {a^{2}-6 a b +6 b^{2}}{a^{5} \tan \left (f x +e \right )}-\frac {b \left (\frac {\left (\frac {7}{8} a^{2} b -\frac {11}{4} a \,b^{2}+\frac {15}{8} b^{3}\right ) \left (\tan ^{3}\left (f x +e \right )\right )+\frac {a \left (9 a^{2}-26 a b +17 b^{2}\right ) \tan \left (f x +e \right )}{8}}{\left (a +b \left (\tan ^{2}\left (f x +e \right )\right )\right )^{2}}+\frac {\left (15 a^{2}-70 a b +63 b^{2}\right ) \arctan \left (\frac {b \tan \left (f x +e \right )}{\sqrt {a b}}\right )}{8 \sqrt {a b}}\right )}{a^{5}}}{f}\) | \(175\) |
default | \(\frac {-\frac {1}{5 a^{3} \tan \left (f x +e \right )^{5}}-\frac {2 a -3 b}{3 a^{4} \tan \left (f x +e \right )^{3}}-\frac {a^{2}-6 a b +6 b^{2}}{a^{5} \tan \left (f x +e \right )}-\frac {b \left (\frac {\left (\frac {7}{8} a^{2} b -\frac {11}{4} a \,b^{2}+\frac {15}{8} b^{3}\right ) \left (\tan ^{3}\left (f x +e \right )\right )+\frac {a \left (9 a^{2}-26 a b +17 b^{2}\right ) \tan \left (f x +e \right )}{8}}{\left (a +b \left (\tan ^{2}\left (f x +e \right )\right )\right )^{2}}+\frac {\left (15 a^{2}-70 a b +63 b^{2}\right ) \arctan \left (\frac {b \tan \left (f x +e \right )}{\sqrt {a b}}\right )}{8 \sqrt {a b}}\right )}{a^{5}}}{f}\) | \(175\) |
risch | \(\frac {i \left (863 a^{3} b -64 a^{4}-2624 a^{4} {\mathrm e}^{8 i \left (f x +e \right )}-66150 b^{4} {\mathrm e}^{8 i \left (f x +e \right )}-896 a^{4} {\mathrm e}^{6 i \left (f x +e \right )}+52920 b^{4} {\mathrm e}^{6 i \left (f x +e \right )}+256 a^{4} {\mathrm e}^{4 i \left (f x +e \right )}-26460 b^{4} {\mathrm e}^{4 i \left (f x +e \right )}+64 a^{4} {\mathrm e}^{2 i \left (f x +e \right )}+7560 b^{4} {\mathrm e}^{2 i \left (f x +e \right )}-10290 a \,b^{3} {\mathrm e}^{14 i \left (f x +e \right )}+3900 a^{2} b^{2} {\mathrm e}^{14 i \left (f x +e \right )}-1275 a^{2} b^{2} {\mathrm e}^{16 i \left (f x +e \right )}-450 a^{3} b \,{\mathrm e}^{14 i \left (f x +e \right )}-250 a^{3} b \,{\mathrm e}^{10 i \left (f x +e \right )}+225 a^{3} b \,{\mathrm e}^{16 i \left (f x +e \right )}+1995 a \,b^{3} {\mathrm e}^{16 i \left (f x +e \right )}+52920 b^{4} {\mathrm e}^{10 i \left (f x +e \right )}-26460 b^{4} {\mathrm e}^{12 i \left (f x +e \right )}-2240 a^{4} {\mathrm e}^{10 i \left (f x +e \right )}+2368 a^{3} b \,{\mathrm e}^{8 i \left (f x +e \right )}+5586 a^{2} b^{2} {\mathrm e}^{8 i \left (f x +e \right )}+35700 a \,b^{3} {\mathrm e}^{8 i \left (f x +e \right )}+1850 a^{3} b \,{\mathrm e}^{6 i \left (f x +e \right )}-39270 a \,b^{3} {\mathrm e}^{6 i \left (f x +e \right )}-2366 a^{3} b \,{\mathrm e}^{4 i \left (f x +e \right )}-6384 a^{2} b^{2} {\mathrm e}^{4 i \left (f x +e \right )}+31290 a \,b^{3} {\mathrm e}^{4 i \left (f x +e \right )}-1150 a^{3} b \,{\mathrm e}^{2 i \left (f x +e \right )}-14070 a \,b^{3} {\mathrm e}^{2 i \left (f x +e \right )}-2479 a^{2} b^{2}-945 b^{4}-3640 a^{2} b^{2} {\mathrm e}^{12 i \left (f x +e \right )}-2044 a^{2} b^{2} {\mathrm e}^{6 i \left (f x +e \right )}-1260 a^{2} b^{2} {\mathrm e}^{10 i \left (f x +e \right )}-1090 a^{3} b \,{\mathrm e}^{12 i \left (f x +e \right )}-30450 a \,b^{3} {\mathrm e}^{10 i \left (f x +e \right )}+22470 a \,b^{3} {\mathrm e}^{12 i \left (f x +e \right )}+7596 a^{2} b^{2} {\mathrm e}^{2 i \left (f x +e \right )}+2625 a \,b^{3}+7560 b^{4} {\mathrm e}^{14 i \left (f x +e \right )}-640 a^{4} {\mathrm e}^{12 i \left (f x +e \right )}-945 b^{4} {\mathrm e}^{16 i \left (f x +e \right )}\right )}{60 \left (a \,{\mathrm e}^{4 i \left (f x +e \right )}-b \,{\mathrm e}^{4 i \left (f x +e \right )}+2 a \,{\mathrm e}^{2 i \left (f x +e \right )}+2 b \,{\mathrm e}^{2 i \left (f x +e \right )}+a -b \right )^{2} \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )^{5} f \,a^{5}}-\frac {15 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}-\frac {2 i \sqrt {-a b}-a -b}{a -b}\right )}{16 a^{4} f}+\frac {35 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}-\frac {2 i \sqrt {-a b}-a -b}{a -b}\right ) b}{8 a^{5} f}-\frac {63 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}-\frac {2 i \sqrt {-a b}-a -b}{a -b}\right ) b^{2}}{16 a^{6} f}+\frac {15 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+\frac {2 i \sqrt {-a b}+a +b}{a -b}\right )}{16 a^{4} f}-\frac {35 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+\frac {2 i \sqrt {-a b}+a +b}{a -b}\right ) b}{8 a^{5} f}+\frac {63 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+\frac {2 i \sqrt {-a b}+a +b}{a -b}\right ) b^{2}}{16 a^{6} f}\) | \(974\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 220, normalized size = 0.95 \begin {gather*} -\frac {\frac {15 \, {\left (15 \, a^{2} b^{2} - 70 \, a b^{3} + 63 \, b^{4}\right )} \tan \left (f x + e\right )^{8} + 25 \, {\left (15 \, a^{3} b - 70 \, a^{2} b^{2} + 63 \, a b^{3}\right )} \tan \left (f x + e\right )^{6} + 8 \, {\left (15 \, a^{4} - 70 \, a^{3} b + 63 \, a^{2} b^{2}\right )} \tan \left (f x + e\right )^{4} + 24 \, a^{4} + 8 \, {\left (10 \, a^{4} - 9 \, a^{3} b\right )} \tan \left (f x + e\right )^{2}}{a^{5} b^{2} \tan \left (f x + e\right )^{9} + 2 \, a^{6} b \tan \left (f x + e\right )^{7} + a^{7} \tan \left (f x + e\right )^{5}} + \frac {15 \, {\left (15 \, a^{2} b - 70 \, a b^{2} + 63 \, b^{3}\right )} \arctan \left (\frac {b \tan \left (f x + e\right )}{\sqrt {a b}}\right )}{\sqrt {a b} a^{5}}}{120 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 573 vs.
\(2 (220) = 440\).
time = 7.49, size = 1239, normalized size = 5.36 \begin {gather*} \left [-\frac {4 \, {\left (64 \, a^{4} - 863 \, a^{3} b + 2479 \, a^{2} b^{2} - 2625 \, a b^{3} + 945 \, b^{4}\right )} \cos \left (f x + e\right )^{9} - 4 \, {\left (160 \, a^{4} - 2173 \, a^{3} b + 7158 \, a^{2} b^{2} - 8925 \, a b^{3} + 3780 \, b^{4}\right )} \cos \left (f x + e\right )^{7} + 4 \, {\left (120 \, a^{4} - 1685 \, a^{3} b + 7104 \, a^{2} b^{2} - 11025 \, a b^{3} + 5670 \, b^{4}\right )} \cos \left (f x + e\right )^{5} + 20 \, {\left (75 \, a^{3} b - 530 \, a^{2} b^{2} + 1155 \, a b^{3} - 756 \, b^{4}\right )} \cos \left (f x + e\right )^{3} - 15 \, {\left ({\left (15 \, a^{4} - 100 \, a^{3} b + 218 \, a^{2} b^{2} - 196 \, a b^{3} + 63 \, b^{4}\right )} \cos \left (f x + e\right )^{8} - 2 \, {\left (15 \, a^{4} - 115 \, a^{3} b + 303 \, a^{2} b^{2} - 329 \, a b^{3} + 126 \, b^{4}\right )} \cos \left (f x + e\right )^{6} + {\left (15 \, a^{4} - 160 \, a^{3} b + 573 \, a^{2} b^{2} - 798 \, a b^{3} + 378 \, b^{4}\right )} \cos \left (f x + e\right )^{4} + 15 \, a^{2} b^{2} - 70 \, a b^{3} + 63 \, b^{4} + 2 \, {\left (15 \, a^{3} b - 100 \, a^{2} b^{2} + 203 \, a b^{3} - 126 \, b^{4}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {-\frac {b}{a}} \log \left (\frac {{\left (a^{2} + 6 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{4} - 2 \, {\left (3 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, {\left ({\left (a^{2} + a b\right )} \cos \left (f x + e\right )^{3} - a b \cos \left (f x + e\right )\right )} \sqrt {-\frac {b}{a}} \sin \left (f x + e\right ) + b^{2}}{{\left (a^{2} - 2 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{4} + 2 \, {\left (a b - b^{2}\right )} \cos \left (f x + e\right )^{2} + b^{2}}\right ) \sin \left (f x + e\right ) + 60 \, {\left (15 \, a^{2} b^{2} - 70 \, a b^{3} + 63 \, b^{4}\right )} \cos \left (f x + e\right )}{480 \, {\left ({\left (a^{7} - 2 \, a^{6} b + a^{5} b^{2}\right )} f \cos \left (f x + e\right )^{8} + a^{5} b^{2} f - 2 \, {\left (a^{7} - 3 \, a^{6} b + 2 \, a^{5} b^{2}\right )} f \cos \left (f x + e\right )^{6} + {\left (a^{7} - 6 \, a^{6} b + 6 \, a^{5} b^{2}\right )} f \cos \left (f x + e\right )^{4} + 2 \, {\left (a^{6} b - 2 \, a^{5} b^{2}\right )} f \cos \left (f x + e\right )^{2}\right )} \sin \left (f x + e\right )}, -\frac {2 \, {\left (64 \, a^{4} - 863 \, a^{3} b + 2479 \, a^{2} b^{2} - 2625 \, a b^{3} + 945 \, b^{4}\right )} \cos \left (f x + e\right )^{9} - 2 \, {\left (160 \, a^{4} - 2173 \, a^{3} b + 7158 \, a^{2} b^{2} - 8925 \, a b^{3} + 3780 \, b^{4}\right )} \cos \left (f x + e\right )^{7} + 2 \, {\left (120 \, a^{4} - 1685 \, a^{3} b + 7104 \, a^{2} b^{2} - 11025 \, a b^{3} + 5670 \, b^{4}\right )} \cos \left (f x + e\right )^{5} + 10 \, {\left (75 \, a^{3} b - 530 \, a^{2} b^{2} + 1155 \, a b^{3} - 756 \, b^{4}\right )} \cos \left (f x + e\right )^{3} - 15 \, {\left ({\left (15 \, a^{4} - 100 \, a^{3} b + 218 \, a^{2} b^{2} - 196 \, a b^{3} + 63 \, b^{4}\right )} \cos \left (f x + e\right )^{8} - 2 \, {\left (15 \, a^{4} - 115 \, a^{3} b + 303 \, a^{2} b^{2} - 329 \, a b^{3} + 126 \, b^{4}\right )} \cos \left (f x + e\right )^{6} + {\left (15 \, a^{4} - 160 \, a^{3} b + 573 \, a^{2} b^{2} - 798 \, a b^{3} + 378 \, b^{4}\right )} \cos \left (f x + e\right )^{4} + 15 \, a^{2} b^{2} - 70 \, a b^{3} + 63 \, b^{4} + 2 \, {\left (15 \, a^{3} b - 100 \, a^{2} b^{2} + 203 \, a b^{3} - 126 \, b^{4}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {\frac {b}{a}} \arctan \left (\frac {{\left ({\left (a + b\right )} \cos \left (f x + e\right )^{2} - b\right )} \sqrt {\frac {b}{a}}}{2 \, b \cos \left (f x + e\right ) \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) + 30 \, {\left (15 \, a^{2} b^{2} - 70 \, a b^{3} + 63 \, b^{4}\right )} \cos \left (f x + e\right )}{240 \, {\left ({\left (a^{7} - 2 \, a^{6} b + a^{5} b^{2}\right )} f \cos \left (f x + e\right )^{8} + a^{5} b^{2} f - 2 \, {\left (a^{7} - 3 \, a^{6} b + 2 \, a^{5} b^{2}\right )} f \cos \left (f x + e\right )^{6} + {\left (a^{7} - 6 \, a^{6} b + 6 \, a^{5} b^{2}\right )} f \cos \left (f x + e\right )^{4} + 2 \, {\left (a^{6} b - 2 \, a^{5} b^{2}\right )} f \cos \left (f x + e\right )^{2}\right )} \sin \left (f x + e\right )}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.95, size = 263, normalized size = 1.14 \begin {gather*} -\frac {\frac {15 \, {\left (15 \, a^{2} b - 70 \, a b^{2} + 63 \, b^{3}\right )} {\left (\pi \left \lfloor \frac {f x + e}{\pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (b\right ) + \arctan \left (\frac {b \tan \left (f x + e\right )}{\sqrt {a b}}\right )\right )}}{\sqrt {a b} a^{5}} + \frac {15 \, {\left (7 \, a^{2} b^{2} \tan \left (f x + e\right )^{3} - 22 \, a b^{3} \tan \left (f x + e\right )^{3} + 15 \, b^{4} \tan \left (f x + e\right )^{3} + 9 \, a^{3} b \tan \left (f x + e\right ) - 26 \, a^{2} b^{2} \tan \left (f x + e\right ) + 17 \, a b^{3} \tan \left (f x + e\right )\right )}}{{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{2} a^{5}} + \frac {8 \, {\left (15 \, a^{2} \tan \left (f x + e\right )^{4} - 90 \, a b \tan \left (f x + e\right )^{4} + 90 \, b^{2} \tan \left (f x + e\right )^{4} + 10 \, a^{2} \tan \left (f x + e\right )^{2} - 15 \, a b \tan \left (f x + e\right )^{2} + 3 \, a^{2}\right )}}{a^{5} \tan \left (f x + e\right )^{5}}}{120 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 13.31, size = 199, normalized size = 0.86 \begin {gather*} -\frac {\frac {1}{5\,a}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^4\,\left (15\,a^2-70\,a\,b+63\,b^2\right )}{15\,a^3}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^2\,\left (10\,a-9\,b\right )}{15\,a^2}+\frac {5\,b\,{\mathrm {tan}\left (e+f\,x\right )}^6\,\left (15\,a^2-70\,a\,b+63\,b^2\right )}{24\,a^4}+\frac {b^2\,{\mathrm {tan}\left (e+f\,x\right )}^8\,\left (15\,a^2-70\,a\,b+63\,b^2\right )}{8\,a^5}}{f\,\left (a^2\,{\mathrm {tan}\left (e+f\,x\right )}^5+2\,a\,b\,{\mathrm {tan}\left (e+f\,x\right )}^7+b^2\,{\mathrm {tan}\left (e+f\,x\right )}^9\right )}-\frac {\sqrt {b}\,\mathrm {atan}\left (\frac {\sqrt {b}\,\mathrm {tan}\left (e+f\,x\right )}{\sqrt {a}}\right )\,\left (15\,a^2-70\,a\,b+63\,b^2\right )}{8\,a^{11/2}\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________